<template>
       <el-breadcrumb separator="/">
    <el-breadcrumb-item :to="{ path: '/' }" class="cursor-pointer">网站首页</el-breadcrumb-item>
    <template v-if="breadMenu.route">
   <el-breadcrumb-item :to="{path:r.path}" 
   v-for="(r,index) of breadMenu.route.matched" :key="index">
  
    {{r.meta.menu?.title}}
   </el-breadcrumb-item>
   </template>
  </el-breadcrumb>
  
</template>

<script setup lang="ts">
import menuStore from "@/store/menuStore"
const breadMenu =menuStore()


</script>

<style scoped>

</style>